package org.xwb.springcloud.constant;

/**
 * @author 10564
 */
public class MqConstant {

    /**
     * 简单消息队列名称
     */
    public static final String SIMPLE_MQ_NAME = "simpleQueue";
    /**
     * 工作队列消息队列名称
     */
    public static final String WORK_QUEUE_NAME = "workQueue";

    //todo =======================fanout订阅发布消息队列start====================
    //订阅发布消息队列1
    public static final String FANOUT_QUEUE_ONE = "fanoutQueueOne";
    //订阅发布消息队列2
    public static final String FANOUT_QUEUE_TWO = "fanoutQueueTwo";
    //订阅发布消息队列 - 交换机
    public static final String FANOUT_EXCHANGE_NAME = "fanoutExchange";
    //todo ========================fanout订阅发布消息队列end======================


    //todo =======================direct路由消息队列start====================
    //路由队列1
    public static final String DIRECT_QUEUE_ONE = "directQueueOne";
    //路由队列2
    public static final String DIRECT_QUEUE_TWO = "directQueueTwo";
    //路由交换机
    public static final String DIRECT_EXCHANGE_NAME = "directExchangeName";
    //路由键one
    public static final String DIRECT_ROUTING_KEY_ONE = "directRoutingKeyOne";
    //路由键two
    public static final String DIRECT_ROUTING_KEY_TWO = "directRoutingKeyTwo";
    //todo =======================direct路由消息队列end======================


    //todo =======================topic主题消息队列start====================
    //队列01
    public static final String TOPIC_QUEUE_ONE = "topicQueueOne";
    //队列02
    public static final String TOPIC_QUEUE_TWO = "topicQueueTwo";
    //交换机
    public static final String TOPIC_EXCHANGE_NAME = "topicExchange";
    /**
     * # 路由键匹配一个或多个单词  routingKey. 开头的都可以匹配到 eg: routingKey.one routingKey.two等等
     */
    public static final String TOPIC_ROUTING_KEY_MATCHING_ONE_OR_MORE = "topicRoutingKey.#";
    // * 路由键匹配一个单词   topicRoutingKey. 开头的,如果多个，只匹配一个
    public static final String TOPIC_ROUTING_KEY_MATCHING_ONE = "topicRoutingKey.*";
    //todo =======================topic主题消息队列end======================


    /**
     * 手动确认消息
     */
    public static final String ACK_MQ_NAME = "ackQueue";
}
